package com.whfc.ms.api.hdc.service.impl;

import com.whfc.hdc.dto.AlgDeviceStreamConfigDTO;
import com.whfc.hdc.dto.AlgDeviceStreamDTO;
import com.whfc.hdc.params.AlgDeviceStreamConfigAddParam;
import com.whfc.hdc.params.AlgDeviceStreamConfigEditParam;
import com.whfc.hdc.params.AlgDeviceStreamParam;
import com.whfc.hdc.service.AlgDeviceStreamService;
import com.whfc.ms.api.hdc.service.MsAlgDeviceStreamService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author qzexing
 * @version 1.0
 * @date 2021-08-02 18:55
 */
@Service
public class MsAlgDeviceStreamServiceImpl implements MsAlgDeviceStreamService {

    @DubboReference(interfaceClass = AlgDeviceStreamService.class, version = "1.0.0")
    private AlgDeviceStreamService algDeviceStreamService;

    @Override
    public List<AlgDeviceStreamDTO> list(String sn) {
        return algDeviceStreamService.list(sn);
    }

    @Override
    public void add(AlgDeviceStreamParam param) {
        algDeviceStreamService.add(param);
    }

    @Override
    public void edit(AlgDeviceStreamParam param) {
        algDeviceStreamService.edit(param);
    }

    @Override
    public void del(Integer streamId) {
        algDeviceStreamService.del(streamId);
    }

    @Override
    public List<AlgDeviceStreamConfigDTO> configList(Integer streamId) {
        return algDeviceStreamService.configList(streamId);
    }

    @Override
    public void configAdd(AlgDeviceStreamConfigAddParam param) {
        algDeviceStreamService.configAdd(param);
    }

    @Override
    public void configEdit(AlgDeviceStreamConfigEditParam param) {
        algDeviceStreamService.configEdit(param);
    }

    @Override
    public void configDel(Integer id) {
        algDeviceStreamService.configDel(id);
    }
}
